/*
 * @Author: Bo Cai
 * @Mail: caibo0520@qq.com
 * @Date: 2021-12-12 15:43:47
 * @LastEditors: Bo Cai
 * @LastEditTime: 2021-12-23 01:01:27
 */
import request from '@/utils/request'

export default {

    getPageList(page, limit, courseId) {
        return request({
            url: `/edu-service/comment/${page}/${limit}`,
            method: 'get',
            params: { courseId }
        })
    },
    addComment(comment) {
        return request({
            url: `/edu-service/comment/save`,
            method: 'post',
            data: comment
        })
    },
    deleteComment(comment) {
        return request({
            url: `/edu-service/comment/delete`,
            method: 'delete',
            data: comment
        })
    }
}